/** 
 * @Author 12629
 * @Description：
 */
class Person {

    public String name;
    public Person() {

    }
    public Person(String name) {
        this.name = name;
    }

    class Inner {

    }
    public void eat() {
        System.out.println("chi");
    }
}
class Student extends Person{

    public Student(String name) {
        super(name);
    }
}

public class Test {

    public static void main(String[] args) {
        Person person = new Person();
        Person.Inner inner = person.new Inner();
    }
    public void func2() {
        new Person(){
            @Override
            public void eat() {
                System.out.println("吃饭饭...");
            }
        };
    }

    public  void func() {
        class Inner {
            void test() {

            }
        }
        Inner inner = new Inner();
        inner.test();
    }
    public static void main1(String[] args) {
        Test test = new Test();
        test.func();
    }
}
